<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: json   json-parse.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>json&nbsp; <span class="subtitle">3.0.0b1</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_json.html" title="json">json</a>
                
                 &gt; json-parse.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
<div class="highlight" ><pre><span class="c">/**</span>
<span class="c"> * &lt;p&gt;The JSON module adds support for serializing JavaScript objects into</span>
<span class="c"> * JSON strings and parsing JavaScript objects from strings in JSON format.&lt;/p&gt;</span>
<span class="c"> *</span>
<span class="c"> * &lt;p&gt;The JSON namespace is added to your YUI instance including static methods</span>
<span class="c"> * Y.JSON.parse(..) and Y.JSON.stringify(..).&lt;/p&gt;</span>
<span class="c"> *</span>
<span class="c"> * &lt;p&gt;The functionality and method signatures follow the ECMAScript 5</span>
<span class="c"> * specification.  In browsers with native JSON support, the native</span>
<span class="c"> * implementation is used.&lt;/p&gt;</span>
<span class="c"> *</span>
<span class="c"> * &lt;p&gt;The &lt;code&gt;json&lt;/code&gt; module is a rollup of &lt;code&gt;json-parse&lt;/code&gt; and</span>
<span class="c"> * &lt;code&gt;json-stringify&lt;/code&gt;.&lt;/p&gt;</span>
<span class="c"> * </span>
<span class="c"> * &lt;p&gt;As their names suggest, &lt;code&gt;json-parse&lt;/code&gt; adds support for parsing</span>
<span class="c"> * JSON data (Y.JSON.parse) and &lt;code&gt;json-stringify&lt;/code&gt; for serializing</span>
<span class="c"> * JavaScript data into JSON strings (Y.JSON.stringify).  You may choose to</span>
<span class="c"> * include either of the submodules individually if you don&#39;t need the</span>
<span class="c"> * complementary functionality, or include the rollup for both.&lt;/p&gt;</span>
<span class="c"> *</span>
<span class="c"> * @module json</span>
<span class="c"> * @class JSON</span>
<span class="c"> * @static</span>
<span class="c"> */</span>

<span class="c">/**</span>
<span class="c"> * Provides Y.JSON.parse method to accept JSON strings and return native</span>
<span class="c"> * JavaScript objects.</span>
<span class="c"> *</span>
<span class="c"> * @module json</span>
<span class="c"> * @submodule json-parse</span>
<span class="c"> * @for JSON</span>
<span class="c"> * @static</span>
<span class="c"> */</span>


<span class="c">// All internals kept private for security reasons</span>
<span class="c"></span>

    <span class="c">/**</span>
<span class="c">     * Alias to native browser implementation of the JSON object if available.</span>
<span class="c">     *</span>
<span class="c">     * @property Native</span>
<span class="c">     * @type {Object}</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
<span class="k">var</span> <span class="nx">Native</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">config</span><span class="o">.</span><span class="nx">win</span><span class="o">.</span><span class="nx">JSON</span><span class="o">,</span>

    <span class="c">/**</span>
<span class="c">     * Replace certain Unicode characters that JavaScript may handle incorrectly</span>
<span class="c">     * during eval--either by deleting them or treating them as line</span>
<span class="c">     * endings--with escape sequences.</span>
<span class="c">     * IMPORTANT NOTE: This regex will be used to modify the input if a match is</span>
<span class="c">     * found.</span>
<span class="c">     *</span>
<span class="c">     * @property _UNICODE_EXCEPTIONS</span>
<span class="c">     * @type {RegExp}</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_UNICODE_EXCEPTIONS</span> <span class="o">=</span> <span class="sr">/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g</span><span class="o">,</span>


    <span class="c">/**</span>
<span class="c">     * First step in the safety evaluation.  Regex used to replace all escape</span>
<span class="c">     * sequences (i.e. &quot;\\&quot;, etc) with &#39;@&#39; characters (a non-JSON character).</span>
<span class="c">     *</span>
<span class="c">     * @property _ESCAPES</span>
<span class="c">     * @type {RegExp}</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_ESCAPES</span> <span class="o">=</span> <span class="sr">/\\(?:[&quot;\\\/bfnrt]|u[0-9a-fA-F]{4})/g</span><span class="o">,</span>

    <span class="c">/**</span>
<span class="c">     * Second step in the safety evaluation.  Regex used to replace all simple</span>
<span class="c">     * values with &#39;]&#39; characters.</span>
<span class="c">     *</span>
<span class="c">     * @property _VALUES</span>
<span class="c">     * @type {RegExp}</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_VALUES</span>  <span class="o">=</span> <span class="sr">/&quot;[^&quot;\\\n\r]*&quot;|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g</span><span class="o">,</span>

    <span class="c">/**</span>
<span class="c">     * Third step in the safety evaluation.  Regex used to remove all open</span>
<span class="c">     * square brackets following a colon, comma, or at the beginning of the</span>
<span class="c">     * string.</span>
<span class="c">     *</span>
<span class="c">     * @property _BRACKETS</span>
<span class="c">     * @type {RegExp}</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_BRACKETS</span> <span class="o">=</span> <span class="sr">/(?:^|:|,)(?:\s*\[)+/g</span><span class="o">,</span>

    <span class="c">/**</span>
<span class="c">     * Final step in the safety evaluation.  Regex used to test the string left</span>
<span class="c">     * after all previous replacements for invalid characters.</span>
<span class="c">     *</span>
<span class="c">     * @property _INVALID</span>
<span class="c">     * @type {RegExp}</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_INVALID</span> <span class="o">=</span> <span class="sr">/[^\],:{}\s]/</span><span class="o">,</span>
    
    <span class="c">/**</span>
<span class="c">     * Test for JSON string of simple data string, number, boolean, or null.</span>
<span class="c">     * E.g. &#39;&quot;some string&quot;&#39;, &quot;true&quot;, &quot;false&quot;, &quot;null&quot;, or numbers &quot;-123e+7&quot;</span>
<span class="c">     * This was needed for some WIP native implementations (FF3.1b2) but may be</span>
<span class="c">     * unnecessary now.</span>
<span class="c">     *</span>
<span class="c">     * @property _SIMPLE</span>
<span class="c">     * @type {RegExp}</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_SIMPLE</span> <span class="o">=</span> <span class="sr">/^\s*(?:&quot;[^&quot;\\\n\r]*&quot;|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)\s*$/</span><span class="o">,</span>

    <span class="c">/**</span>
<span class="c">     * Replaces specific unicode characters with their appropriate \unnnn</span>
<span class="c">     * format. Some browsers ignore certain characters during eval.</span>
<span class="c">     *</span>
<span class="c">     * @method escapeException</span>
<span class="c">     * @param c {String} Unicode character</span>
<span class="c">     * @return {String} the \unnnn escapement of the character</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_escapeException</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">c</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">return</span> <span class="s1">&#39;\\u&#39;</span><span class="o">+(</span><span class="s1">&#39;0000&#39;</span><span class="o">+(+(</span><span class="nx">c</span><span class="o">.</span><span class="nx">charCodeAt</span><span class="o">(</span><span class="m">0</span><span class="o">))).</span><span class="nx">toString</span><span class="o">(</span><span class="m">16</span><span class="o">)).</span><span class="nx">slice</span><span class="o">(-</span><span class="m">4</span><span class="o">);</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Traverses nested objects, applying a reviver function to each (key,value)</span>
<span class="c">     * from the scope if the key:value&#39;s containing object.  The value returned</span>
<span class="c">     * from the function will replace the original value in the key:value pair.</span>
<span class="c">     * If the value returned is undefined, the key will be omitted from the</span>
<span class="c">     * returned object.</span>
<span class="c">     *</span>
<span class="c">     * @method _revive</span>
<span class="c">     * @param data {MIXED} Any JavaScript data</span>
<span class="c">     * @param reviver {Function} filter or mutation function</span>
<span class="c">     * @return {MIXED} The results of the filtered data</span>
<span class="c">     * @private</span>
<span class="c">     */</span>
    <span class="nx">_revive</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">data</span><span class="o">,</span> <span class="nx">reviver</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">walk</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">o</span><span class="o">,</span><span class="nx">key</span><span class="o">)</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">k</span><span class="o">,</span><span class="nx">v</span><span class="o">,</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">o</span><span class="o">[</span><span class="nx">key</span><span class="o">];</span>
            <span class="k">if</span> <span class="o">(</span><span class="nx">value</span> <span class="o">&amp;&amp;</span> <span class="k">typeof</span> <span class="nx">value</span> <span class="o">===</span> <span class="s1">&#39;object&#39;</span><span class="o">)</span> <span class="o">{</span>
                <span class="k">for</span> <span class="o">(</span><span class="nx">k</span> <span class="k">in</span> <span class="nx">value</span><span class="o">)</span> <span class="o">{</span>
                    <span class="k">if</span> <span class="o">(</span><span class="nx">value</span><span class="o">.</span><span class="nx">hasOwnProperty</span><span class="o">(</span><span class="nx">k</span><span class="o">))</span> <span class="o">{</span>
                        <span class="nx">v</span> <span class="o">=</span> <span class="nx">walk</span><span class="o">(</span><span class="nx">value</span><span class="o">,</span> <span class="nx">k</span><span class="o">);</span>
                        <span class="k">if</span> <span class="o">(</span><span class="nx">v</span> <span class="o">===</span> <span class="kc">undefined</span><span class="o">)</span> <span class="o">{</span>
                            <span class="nx">delete</span> <span class="nx">value</span><span class="o">[</span><span class="nx">k</span><span class="o">];</span>
                        <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
                            <span class="nx">value</span><span class="o">[</span><span class="nx">k</span><span class="o">]</span> <span class="o">=</span> <span class="nx">v</span><span class="o">;</span>
                        <span class="o">}</span>
                    <span class="o">}</span>
                <span class="o">}</span>
            <span class="o">}</span>
            <span class="k">return</span> <span class="nx">reviver</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span><span class="nx">key</span><span class="o">,</span><span class="nx">value</span><span class="o">);</span>
        <span class="o">};</span>

        <span class="k">return</span> <span class="k">typeof</span> <span class="nx">reviver</span> <span class="o">===</span> <span class="s1">&#39;function&#39;</span> <span class="o">?</span> <span class="nx">walk</span><span class="o">({</span><span class="s1">&#39;&#39;</span><span class="o">:</span><span class="nx">data</span><span class="o">},</span><span class="s1">&#39;&#39;</span><span class="o">)</span> <span class="o">:</span> <span class="nx">data</span><span class="o">;</span>
    <span class="o">},</span>

    <span class="c">/**</span>
<span class="c">     * Parse a JSON string, returning the native JavaScript representation.</span>
<span class="c">     *</span>
<span class="c">     * @param s {string} JSON string data</span>
<span class="c">     * @param reviver {function} (optional) function(k,v) passed each key value</span>
<span class="c">     *          pair of object literals, allowing pruning or altering values</span>
<span class="c">     * @return {MIXED} the native JavaScript representation of the JSON string</span>
<span class="c">     * @throws SyntaxError</span>
<span class="c">     * @method parse</span>
<span class="c">     * @static</span>
<span class="c">     */</span>
    <span class="c">// JavaScript implementation in lieu of native browser support.  Based on</span>
<span class="c"></span>    <span class="c">// the json2.js library from http://json.org</span>
<span class="c"></span>    <span class="nx">_parse</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">s</span><span class="o">,</span><span class="nx">reviver</span><span class="o">)</span> <span class="o">{</span>
        <span class="k">if</span> <span class="o">(</span><span class="k">typeof</span> <span class="nx">s</span> <span class="o">===</span> <span class="s1">&#39;string&#39;</span><span class="o">)</span> <span class="o">{</span>
            <span class="c">// Replace certain Unicode characters that are otherwise handled</span>
<span class="c"></span>            <span class="c">// incorrectly by some browser implementations.</span>
<span class="c"></span>            <span class="c">// NOTE: This modifies the input if such characters are found!</span>
<span class="c"></span>            <span class="nx">s</span> <span class="o">=</span> <span class="nx">s</span><span class="o">.</span><span class="nx">replace</span><span class="o">(</span><span class="nx">_UNICODE_EXCEPTIONS</span><span class="o">,</span> <span class="nx">_escapeException</span><span class="o">);</span>
            
            <span class="c">// Test for any remaining invalid characters</span>
<span class="c"></span>            <span class="k">if</span> <span class="o">(!</span><span class="nx">_INVALID</span><span class="o">.</span><span class="nx">test</span><span class="o">(</span><span class="nx">s</span><span class="o">.</span><span class="nx">replace</span><span class="o">(</span><span class="nx">_ESCAPES</span><span class="o">,</span><span class="s1">&#39;@&#39;</span><span class="o">).</span>
                                 <span class="nx">replace</span><span class="o">(</span><span class="nx">_VALUES</span><span class="o">,</span><span class="s1">&#39;]&#39;</span><span class="o">).</span>
                                 <span class="nx">replace</span><span class="o">(</span><span class="nx">_BRACKETS</span><span class="o">,</span><span class="s1">&#39;&#39;</span><span class="o">)))</span> <span class="o">{</span>

                <span class="c">// Eval the text into a JavaScript data structure, apply any</span>
<span class="c"></span>                <span class="c">// reviver function, and return</span>
<span class="c"></span>                <span class="k">return</span> <span class="nx">_revive</span><span class="o">(</span> <span class="nb">eval</span><span class="o">(</span><span class="s1">&#39;(&#39;</span> <span class="o">+</span> <span class="nx">s</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="o">),</span> <span class="nx">reviver</span> <span class="o">);</span>
            <span class="o">}</span>
        <span class="o">}</span>

        <span class="k">throw</span> <span class="k">new</span> <span class="nx">SyntaxError</span><span class="o">(</span><span class="s1">&#39;JSON.parse&#39;</span><span class="o">);</span>
    <span class="o">},</span>
    
    <span class="nx">test</span><span class="o">;</span>


<span class="c">// Test the level of native browser support</span>
<span class="c"></span><span class="k">if</span> <span class="o">(</span><span class="nx">Native</span> <span class="o">&amp;&amp;</span> <span class="nb">Object</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">toString</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="nx">Native</span><span class="o">)</span> <span class="o">===</span> <span class="s1">&#39;[object JSON]&#39;</span><span class="o">)</span> <span class="o">{</span>
    <span class="k">try</span> <span class="o">{</span>
        <span class="nx">test</span> <span class="o">=</span> <span class="nx">Native</span><span class="o">.</span><span class="nx">parse</span><span class="o">(</span><span class="s1">&#39;{&quot;x&quot;:1}&#39;</span><span class="o">,</span> <span class="k">function</span> <span class="o">(</span><span class="nx">k</span><span class="o">,</span><span class="nx">v</span><span class="o">)</span> <span class="o">{</span><span class="k">return</span> <span class="nx">k</span><span class="o">==</span><span class="s1">&#39;x&#39;</span> <span class="o">?</span> <span class="m">2</span> <span class="o">:</span> <span class="nx">v</span><span class="o">;});</span>
        <span class="nx">switch</span> <span class="o">(</span><span class="nx">test</span><span class="o">.</span><span class="nx">x</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">case</span> <span class="m">1</span> <span class="o">:</span> <span class="c">// Reviver not supported</span>
<span class="c"></span>                <span class="nx">_parse</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">s</span><span class="o">,</span><span class="nx">reviver</span><span class="o">)</span> <span class="o">{</span>
                    <span class="k">return</span> <span class="nx">_SIMPLE</span><span class="o">.</span><span class="nx">test</span><span class="o">(</span><span class="nx">s</span><span class="o">)</span> <span class="o">?</span>
                            <span class="nb">eval</span><span class="o">(</span><span class="s1">&#39;(&#39;</span> <span class="o">+</span> <span class="nx">s</span> <span class="o">+</span> <span class="s1">&#39;)&#39;</span><span class="o">)</span> <span class="o">:</span>
                            <span class="nx">_revive</span><span class="o">(</span><span class="nx">Native</span><span class="o">.</span><span class="nx">parse</span><span class="o">(</span><span class="nx">s</span><span class="o">),</span> <span class="nx">reviver</span><span class="o">);</span>
                <span class="o">};</span>
                <span class="k">break</span><span class="o">;</span>

            <span class="nx">case</span> <span class="m">2</span> <span class="o">:</span> <span class="c">// Full support</span>
<span class="c"></span>                <span class="nx">_parse</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">s</span><span class="o">,</span> <span class="nx">reviver</span><span class="o">)</span> <span class="o">{</span>
                    <span class="k">return</span> <span class="nx">Native</span><span class="o">.</span><span class="nx">parse</span><span class="o">(</span><span class="nx">s</span><span class="o">,</span> <span class="nx">reviver</span><span class="o">);</span>
                <span class="o">};</span>
                <span class="k">break</span><span class="o">;</span>

            <span class="c">// default is JS implementation</span>
<span class="c"></span>        <span class="o">}</span>
    <span class="o">}</span>
    <span class="k">catch</span> <span class="o">(</span><span class="nx">e</span><span class="o">)</span> <span class="o">{}</span> <span class="c">// defer to JS implementation</span>
<span class="c"></span><span class="o">}</span>

<span class="nx">Y</span><span class="o">.</span><span class="nx">mix</span><span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nx">namespace</span><span class="o">(</span><span class="s1">&#39;JSON&#39;</span><span class="o">),{</span> <span class="nx">parse</span> <span class="o">:</span> <span class="nx">_parse</span> <span class="o">});</span>
</pre></div>
                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_anim.html" title="anim">anim</a></li>
                                <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li>
                                <li class=""><a href="module_base.html" title="base">base</a></li>
                                <li class=""><a href="module_cache.html" title="cache">cache</a></li>
                                <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li>
                                <li class=""><a href="module_collection.html" title="collection">collection</a></li>
                                <li class=""><a href="module_console.html" title="console">console</a></li>
                                <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li>
                                <li class=""><a href="module_dd.html" title="dd">dd</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dump.html" title="dump">dump</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li>
                                <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_io.html" title="io">io</a></li>
                                <li class="selected"><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_node.html" title="node">node</a></li>
                                <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li>
                                <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li>
                                <li class=""><a href="module_oop.html" title="oop">oop</a></li>
                                <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li>
                                <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_queue.html" title="queue">queue</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li>
                                <li class=""><a href="module_test.html" title="test">test</a></li>
                                <li class=""><a href="module_widget.html" title="widget">widget</a></li>
                                <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li>
                                <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li>
                                <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li>
                                <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li>
                                <li class=""><a href="module_yui.html" title="yui">yui</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="JSON.html" title="JSON">JSON</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class="selected"><a href="json-parse.js.html" title="json-parse.js">json-parse.js</a></li>
                                <li class=""><a href="json-stringify.js.html" title="json-stringify.js">json-stringify.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"access": "private", "host": "JSON", "name": "_BRACKETS", "url": "JSON.html#property__BRACKETS", "type": "property"}, {"access": "protected", "host": "JSON", "name": "_CHARS", "url": "JSON.html#property__CHARS", "type": "property"}, {"access": "", "host": "JSON", "name": "dateToString", "url": "JSON.html#method_dateToString", "type": "method"}, {"access": "private", "host": "JSON", "name": "escapeException", "url": "JSON.html#method_escapeException", "type": "method"}, {"access": "private", "host": "JSON", "name": "_ESCAPES", "url": "JSON.html#property__ESCAPES", "type": "property"}, {"access": "private", "host": "JSON", "name": "_INVALID", "url": "JSON.html#property__INVALID", "type": "property"}, {"access": "private", "host": "JSON", "name": "Native", "url": "JSON.html#property_Native", "type": "property"}, {"access": "", "host": "JSON", "name": "parse", "url": "JSON.html#method_parse", "type": "method"}, {"access": "private", "host": "JSON", "name": "_revive", "url": "JSON.html#method__revive", "type": "method"}, {"access": "private", "host": "JSON", "name": "_SIMPLE", "url": "JSON.html#property__SIMPLE", "type": "property"}, {"access": "protected", "host": "JSON", "name": "_SPECIAL_CHARS", "url": "JSON.html#property__SPECIAL_CHARS", "type": "property"}, {"access": "", "host": "JSON", "name": "stringify", "url": "JSON.html#method_stringify", "type": "method"}, {"access": "private", "host": "JSON", "name": "_UNICODE_EXCEPTIONS", "url": "JSON.html#property__UNICODE_EXCEPTIONS", "type": "property"}, {"access": "private", "host": "JSON", "name": "_VALUES", "url": "JSON.html#property__VALUES", "type": "property"}];
</script>
</body>
</html>
